package com.itheima.huikebackend.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.annotations.Param;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.RequestParam;

import java.time.LocalDate;

/**
 * @program: huike
 * @className: UserPageDTO
 * @description: TODO
 * @author: xch
 * @createTime: 2023-08-07 20:27
 **/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SysUserPageDTO {

    @Builder.Default
    private Integer pageNum = 1;

    @Builder.Default
    private Integer pageSize = 10;

    private Integer page;

    private String userName;

    private String phonenumber;

    private Integer status;

    @DateTimeFormat(pattern = "yy-MM-dd")

    private LocalDate beginTime;

    @DateTimeFormat(pattern = "yy-MM-dd")
    private LocalDate endTime;
}
